<template>
    <div class="box">
      <h1>父组件</h1>
      <div> <router-link to="/box/child1">child1</router-link>
        <router-link to="/box/child2">child2</router-link></div>
      <router-view/>
    </div>
</template>

<script>
    export default {
        name: "box"
    }
</script>

<style scoped>

</style>
